/*
 *	@author	GeneZhao
 *	@date	2015-04-07 16:23:27
 *	@desc	
 */
Ext.define('kmsApp.view.main.MainModel', {
    extend: 'Ext.app.ViewModel',

    alias: 'viewmodel.main',

    requires:['kmsApp.store.main.Navigation'],//引入必要文件

    constructor: function() {        
        var me = this;
        this.callParent(arguments);
        //用户信息验证
        /*Ext.Ajax.request({
            url: 'applicationinfo.do',
            async: false, // 同步  
            success: function(response) {
                var text = response.responseText;
                // 将字段串转换成本地变量  
                var applicationInfo = Ext.decode(text, true);
                // 把从后台传过来的参数加入到data中去  
                Ext.apply(me.data, applicationInfo);
            }
        });*/
    },

    stores:{  
        navigationStore:{  
            type:'navigation',//导航栏treestore  
            storeId:'navigation'  
        }  
    },  

    data: {
        name: 'kmsApp',
        system: {
            name: 'KMS权限控制',
            version: '1.0.0'
        },
        service: {
            company: '雪球科技',
            email: 'gene.zhao@snowballtech.com',
            copyright: '深圳雪球科技'
        },
        systemMenu: [{
            text: 'OME信息管理',
            icon: '',
            glyph: 0xf0f7,
            module: 'OEMInfoManage'
        }, {
            text: '业务权限管理',
            icon: '',
            glyph: 0xf02e,
            module: 'BusiRightManage'
        }]
    }

    //TODO - add data, formulas and/or methods to support your view
});
